package ru.sh.jewel;

import framework.GameResources;
import framework.graphics.RotatedAnimation;
import framework.graphics.Texture;
import framework.managers.TextureManager;
import framework.objects.hero.Hero;


public class GoodJewel extends Jewel {

	public GoodJewel(float x, Hero hero) {
		super(x, hero);
		type = Jewel.GOOD_TYPE;
	}

	@Override
	public void onGet() {
		super.onGet();
		hero.upHealth(1);
	}

	@Override
	protected void initPresentation() {
//		presentation = TextureManager.getTexture(SHResourcesInfo.getBitmapName(4));
		presentation = new RotatedAnimation(100, new Texture[] {TextureManager.getTexture(GameResources.getBitmapName(4))}, 180, 0, 0);
	}
	
	

}
